#pragma once
#include <google/protobuf/service.h>
// #include ""


class RpcController : public google::protobuf::RpcController
{
public:
    RpcController();
    // virtual ~RpcController();


    // client
    virtual void Reset();
    virtual bool Failed() const;
    virtual std::string ErrorText() const;
    virtual void StartCancel();
    virtual void SetFailed(const std::string& reason);
    virtual bool IsCanceled() const;
    virtual void NotifyOnCancel(google::protobuf::Closure* callback);

private:
    std::string m_error;
    bool m_false;
};